<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="index.jsp">首页</a>
	<table border="1px">
		<tr>
			<th>章节编号</th>
			<th>书籍编号</th>
			<th>章节序号</th>
			<th>章节名称</th>
			<th>章节内容</th>
			<th>是否收费</th>
			<th>收费标准</th>
		</tr>
		<c:forEach items="${datas.data }" var="chapter">
			<tr>
				<td>${chapter.chapter_id }</td>
				<td>${chapter.book_id }</td>
				<td>${chapter.chapter_index }</td>
				<td>${chapter.chapter_name }</td>
				<td>${chapter.chapter_content }</td>
				<td>${chapter.is_charge }</td>
				<td>${chapter.charge_standard }</td>
			</tr>
		</c:forEach>
	</table>
	<a href="init_chapter?page=1">首页</a>
	<a href="init_chapter?page=${datas.prev }">上一页</a>
	<a href="init_chapter?page=${datas.next }">下一页</a>
	<a href="init_chapter?page=${datas.total }">尾页</a>
</body>
</html>